﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductAccountQuery.aspx.cs" Inherits="Hisun.View.ProductAccount.ProductAccountQuery" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
   
    <style type="text/css">
        .style1
        {
            height: 16px;
        }
    </style>
   
</head>
<body>
    <form id="form1" runat="server">
        <div class =" CommonPage_MainPanel">
    <div class ="CommonPage_Banner"><div class = "CommomPage_Title">产品账户管理</div></div>
    <div class ="CommonPage_Body">

    
        <table style="width:100%;">
            <tr>
                <td>
                 
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:Label ID="Label10" runat="server" Text="查询字段：" SkinID="Label"></asp:Label>
                    <asp:DropDownList ID="DropDownList_Field" runat="server" 
                        EnableViewState="False" Height="24px" SkinID="DropdownList">
                        <asp:ListItem Value="0">产品账户ID</asp:ListItem>
                        <asp:ListItem Value="1">产品账户名称</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="Label9" runat="server" Text="查询内容：" SkinID="Label"></asp:Label>
                    <asp:TextBox ID="TextBox_QueryValue" runat="server" Height="18px" 
                        SkinID="TextBox"></asp:TextBox>
                    <asp:Button SkinID = "Button" ID="Button_Query" runat="server" Text="查询" onclick="MyClick" 
                        CommandArgument="first" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Button SkinID = "Button" ID="Button_Add" runat="server" oncommand="Button_Add_Command" 
                        Text="增加" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="Panel_GridList" runat="server" Visible="False"> <asp:LinkButton ID="LinkButton_First" runat="server" CommandArgument="First" 
                                    onclick="MyClick">&lt;&lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Prev" runat="server" CommandArgument="Prev" 
                                    onclick="MyClick"> &lt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Next" runat="server" CommandArgument="Next" 
                                    onclick="MyClick">&gt;</asp:LinkButton>
                                &nbsp;&nbsp;
                                <asp:LinkButton ID="LinkButton_Last" runat="server" CommandArgument="Last" 
                                    onclick="MyClick"> &gt;&gt;</asp:LinkButton>
                                <asp:Label ID="Label_Total" runat="server" Text="共：" SkinID="Label"></asp:Label>
                                <asp:Label ID="Label_CurrenPageAndTo" runat="server" Text="页，当前第 页，转到" 
                            SkinID="Label"></asp:Label>
                                <asp:TextBox ID="TextBox_PageIndex" runat="server" Width="26px" 
                            SkinID="TextBox"></asp:TextBox>
                                <asp:Label ID="Label11" runat="server" Text="页" SkinID="Label"></asp:Label>
                                <asp:RangeValidator ID="RangeValidator_PageIndex" runat="server" 
                                    ControlToValidate="TextBox_PageIndex" ErrorMessage="*" MaximumValue="10000" 
                                    MinimumValue="1" Type="Integer"></asp:RangeValidator>
                                <asp:Button SkinID = "Button" ID="Button_PageGo" runat="server" CommandArgument="GotoPage" 
                                    onclick="MyClick" Text="GO" /><asp:GridView ID="GridView_ProductAccountList" runat="server"  
                        SkinID ="GridView"
                        AutoGenerateColumns="False"                        
>
                        <Columns>
                            <asp:BoundField DataField="产品账户ID" HeaderText="产品账户ID" ReadOnly="True" 
                                SortExpression="产品账户ID" />
                            <asp:BoundField DataField="产品账户名称" HeaderText="产品账户名称" ReadOnly="True" 
                                SortExpression="产品账户名称" />
                            <asp:BoundField DataField="产品ID" HeaderText="产品ID" ReadOnly="True" 
                                SortExpression="产品ID" />
                            <asp:BoundField DataField="产品名称" HeaderText="产品名称" ReadOnly="True" 
                                SortExpression="产品名称" />
                            <asp:BoundField DataField="产品辅码" HeaderText="产品辅码" ReadOnly="True" 
                                SortExpression="产品辅码" />
                            <asp:BoundField DataField="产品助记码" HeaderText="产品助记码" ReadOnly="True" 
                                SortExpression="产品助记码" />
                            <asp:BoundField DataField="计量单位" HeaderText="计量单位" ReadOnly="True" 
                                SortExpression="计量单位" />
                            <asp:BoundField DataField="规格型号" HeaderText="规格型号" ReadOnly="True" 
                                SortExpression="规格型号" />
                            <asp:BoundField DataField="车间" HeaderText="车间" ReadOnly="True" 
                                SortExpression="备注" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button SkinID = "Button" ID="Button_Edit" runat="server" CommandArgument='<%# Eval("产品账户ID") %>' 
                                        oncommand="Button_Edit_Command" Text="编辑" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button SkinID = "Button" ID="Button_Del" runat="server" oncommand="Button_Del_Command" 
                                        Text="删除" CommandArgument='<%# Eval("产品账户ID") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Panel ID="Panel_AddEdit" runat="server" Visible="False">
                        <table style="width:100%;">
                            <tr>
                                <td >
                                    <asp:Label ID="Label1" runat="server" Text="产品账户ID" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_AccountId" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td >
                                    <asp:Label ID="Label6" runat="server" Text="账户名称" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_AccountName" runat="server" Width="297px" 
                                        SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td >
                                    <asp:Label ID="Label2" runat="server" Text="产品ID" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_ProductID" runat="server" SkinID="TextBox"></asp:TextBox>
                                    <asp:Button SkinID = "Button" ID="Button_Select" runat="server" Text="..." Width="16px" 
                                        onclick="Button_Select_Click" />
                                </td>
                                <td >
                                    <asp:Label ID="Label4" runat="server" Text="产品名称" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_ProductName" runat="server" Width="296px" 
                                        SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td >
                                    <asp:Label ID="Label7" runat="server" Text="产品辅码" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_FuMa" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td >
                                    <asp:Label ID="Label8" runat="server" Text="计量单位" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_Unit" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td >
                                    <asp:Label ID="Label5" runat="server" Text="备注" SkinID="Label"></asp:Label>
                                </td>
                                <td >
                                    <asp:TextBox ID="TextBox_Description" runat="server" SkinID="TextBox"></asp:TextBox>
                                </td>
                                <td >
                                    &nbsp;</td>
                                <td >
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td >
                                    <asp:Button SkinID = "Button" ID="Button_PostBack" runat="server" 
                                        oncommand="Button_PostBack_Command" Text="提交" />
                                    <asp:Button SkinID = "Button" ID="Button_Cancel" runat="server" oncommand="Button_Cancel_Command" 
                                        Text="取消" />
                                </td>
                                <td >
                                    &nbsp;</td>
                                <td >
                                    &nbsp;</td>
                                <td >
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                  <asp:HiddenField ID="StateFlag" runat="server" Value="0" /></td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <asp:HiddenField ID="CurrentPage" runat="server" Value="0" />
                                </td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table>
    
    </div></div>
    </form>
</body>
</html>
